package com.wilson.integration.lease.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wilson.integration.lease.common.entity.ViewAppointment;
import com.wilson.integration.lease.common.entity.vo.appointment.AppointmentItemVO;
import com.wilson.integration.lease.common.entity.vo.appointment.AppointmentQueryVO;
import com.wilson.integration.lease.common.entity.vo.appointment.AppointmentVO;

import java.util.List;

/**
* @author wilson
* @description 针对表【view_appointment(预约看房信息表)】的数据库操作Mapper
* @createDate 2023-07-24 15:48:00
* @Entity com.wilson.integration.lease.entity.ViewAppointment
*/
public interface ViewAppointmentMapper extends BaseMapper<ViewAppointment> {

    /**
     * 分页查询预约信息
     *
     * @param page
     * @param queryVO
     * @return
     */
    IPage<AppointmentVO> pageAgreementByQuery(IPage<AppointmentVO> page, AppointmentQueryVO queryVO);

    /**
     * 查询个人预约看房列表
     *
     * @param userId
     * @return
     */
    List<AppointmentItemVO> listItemByUserId(Long userId);
}




